/* 数据报表页面样式 */

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.header-right .el-button-group {
    display: flex;
    gap: 12px;
}

/* 主要内容区 */
.main-content {
    padding: 0 24px;
}

/* 报表配置区域 */
.report-config-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.config-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.config-form {
    max-width: 100%;
}

.config-form .el-form-item {
    margin-bottom: 20px;
}

.config-form .el-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* 报表预览区域 */
.report-preview-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.preview-content {
    min-height: 400px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.preview-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

.preview-document {
    padding: 24px;
}

.report-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.report-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.report-header p {
    color: #6b7280;
    font-size: 14px;
}

.preview-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.chart-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
}

.chart-title {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 16px;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.chart-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.preview-table {
    margin-top: 24px;
}

/* 历史报表列表 */
.history-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* 表格样式 */
.el-table {
    margin-bottom: 20px;
}

.el-table th {
    background-color: #f9fafb !important;
    color: #374151;
    font-weight: 600;
}

.el-table td {
    color: #4b5563;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

/* 按钮样式 */
.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-button--success {
    background: #10b981;
    border: none;
}

.el-button--success:hover {
    background: #059669;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .preview-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .el-button-group {
        width: 100%;
    }

    .header-right .el-button {
        flex: 1;
    }

    .main-content {
        padding: 0 16px;
    }

    .config-form .el-checkbox-group {
        flex-direction: column;
        gap: 8px;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .section-header .el-input {
        width: 100%;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .page-header,
    .report-config-section,
    .report-preview-section,
    .history-section {
        background: #1f2937;
    }

    .header-left h1,
    .config-header h3,
    .preview-header h3,
    .section-header h3,
    .report-header h2 {
        color: #f9fafb;
    }

    .preview-content {
        border-color: #374151;
    }

    .report-header {
        border-color: #374151;
    }

    .chart-item {
        background: #111827;
    }

    .chart-title {
        color: #f9fafb;
    }

    .el-table th {
        background-color: #111827 !important;
        color: #f9fafb;
    }

    .el-table td {
        color: #d1d5db;
    }

    .preview-placeholder,
    .chart-placeholder {
        color: #6b7280;
    }
} 